package com.fly.springbootTemplate.service;

import com.fly.springbootTemplate.entity.Book;

import java.util.List;

public interface BookService {
    //增加图书
    boolean addBook(Book book);
    //删除图书
    boolean deleteBook(Integer id);
    //修改图书
    boolean updateBook(Book book);
    //查询所有图书
    List<Book> getAllBook();
    //查询单个图书
    Book getOneBookById(Integer id);
}
